<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.zpyr.mvc.vo.Carc_evaluation"%>
<%@page import="java.util.List"%>
<%@page import="com.zpyr.mvc.vo.Carc_info"%>
<%@page import="com.zpyr.common.StringUtil"%>
<!DOCTYPE html>
<html>
<head>
<%
	String search_opt = StringUtil.nvl( request.getParameter("search_opt") , "name");
	String search_word = StringUtil.nvl(  request.getParameter("search_word") , "");

	List<Carc_info> carc_list = (List<Carc_info>) request.getAttribute("carc_list");
%>
<title>명칭검색</title>
<link rel="stylesheet" href="/css/common.css" />
<style>

</style>
</head>
<body>

<div id="header" class="header">
<span style="">명칭검색</span>
<span style="font-size:12px;">
<select name="search_opt">
<option value="addr_dong">동이름</option>
<option value="addr">주소</option>
<option value="name">명칭</option>
</select>
<input type="text" name="search_word" style="width:100px;" />
<input type="button" class="button1" value="검색" onclick="goSearchName($('select[name=search_opt]').val() , $('input[name=search_word]').val() )" />
</span>
</div>

<div id="page_search_name_scrollList1" style="height:350px;">
	<ul id="search_name_list">
<%
	if(carc_list != null) {
		for( Carc_info carc_info : carc_list ) {
%>
	<li class="content1" onclick="goCarcenterInfoPage('<%=carc_info.getInfo_seq()%>');">
	<h3><%=carc_info.getName() %> - <%=carc_info.getAddr() %></h3>
	<br />
	<%=carc_info.getDescription() %>
	</li>
<%
	}
}
%>
	</ul>
</div>
<script>
new iScroll('page_search_name_scrollList1');
$('select[name="search_opt"]').val('<%=search_opt%>');
$('input[name="search_word"]').val('<%=search_word%>');
</script>
</body>
</html>